home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Dev
/
GameboyDev
/
GBDK
/
lib
/
time.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1999-03-29
|
304 b
|
22 lines
/*
time.c
Simple, not completly conformant implementation of time routines
*/
/* clock() is in clock.s */
#include <time.h>
time_t time(time_t *t)
{
UWORD ret;
/* Should be relative to 0:00 1970 GMT but hey */
ret = clock() / CLOCKS_PER_SEC;
if (t)
*t = ret;
return ret;
}